package router

import (
	"github.com/gin-gonic/gin"
	"yxs-mall/app/mall/apis"
	"yxs-mall/common/middleware"
)

func InitRouter(g *gin.Engine) {
	productApi := apis.MallProduct{}

	r := g.Group("/mall/product").Use(middleware.AuthMiddleware(false))
	{
		r.POST("/search", productApi.GetProduct)
	}
}
